﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Sapro_Project
{
	public class ControlProfessor
	{
		public ControlProfessor()
		{
			// Insert code required on object creation below this point.
		}
        public void CadastrarProfessorControl(Professor prof) {
            /*DAOMobile.ObterDaoMobile().InsereBanco(prof);
            DAOMobile novo = new DAOMobile();
            novo.InsereBanco(prof);*/
        }
        public List<Professor> BuscaProfessorControl() { return new List<Professor>(); }

        public void ExcluiProfessorControl(Professor pr) {
            List<Professor> prof = BuscaProfessorControl();
            foreach(Professor p in prof) {
                if (pr == p)
                {
                    DAOMobile dao = new DAOMobile();
                    dao.DeletaBanco(pr);
                }
            }
        }
	}
}